const User = require('../server/models/user')
const arr = []
for (let index = 0; index < 100; index++) {
  const obj = {
    userName: `user_${index}`,
    password: '123456',
    name: `user_${index}`,
    age: 50 + Math.round((1 - Math.random()) * 40)
  }
  arr.push(obj)
}
// console.log(arr)
User.insertMany(arr)